<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>

    </style>
</head>
<body>
<div id="app">
    <el-container>
        <el-header height="50px" style="margin-top: 20px;">
            <!--导航菜单开始-->
            <div style="background-color: #5c979f">
                <el-menu style="width: 1200px;margin: 10px auto"
                         :default-active="activeIndex"
                         class="el-menu-demo"
                         mode="horizontal"
                         @select="handleSelect"
                         background-color="#5c979f"
                         text-color="#fff"
                         active-text-color="#FFF">
                    <el-menu-item  index="1">首页</el-menu-item>
                    <el-menu-item  index="2">房间分类</el-menu-item>
                    <el-menu-item  index="3">留言板</el-menu-item>
                    <el-menu-item  index="4">个人中心</el-menu-item>
                    <div style="float: right;position: relative;top: 10px">
                        <el-input placeholder="请输入搜索内容" v-model="wd">
                            <el-button slot="append" icon="el-icon-search" @click="search()"></el-button>
                        </el-input>
                    </div>
                </el-menu>
            </div>
            <!--导航菜单结束-->
        </el-header>

        <el-main style="width: 1200px;margin: 10px auto">
            <el-row gutter="20" v-if="activeIndex=='1'">
                <!--轮播图开始-->
                <el-carousel height="500px" style="margin-bottom:100px ;">
                    <el-carousel-item>
                        <img src="./imgs/banner/room02.jpg" width="100%" height="100%" alt="">
                    </el-carousel-item>
                    <el-carousel-item>
                        <img src="./imgs/banner/room08.jpg" width="100%" height="100%" alt="">
                    </el-carousel-item>
                    <el-carousel-item>
                        <img src="./imgs/banner/room09.jpg" width="100%" height="100%" alt="">
                    </el-carousel-item>
                </el-carousel>
                <!--轮播图结束-->
                <el-row gutter="20"  style="margin-top: 10px">
                    <el-col span="6" v-for="i in pArr" style="margin: 10px 0">
                        <el-card >
                            <img :src="i.url" width="100%" height="200px" alt="">
                            <div>
                                <p style="font-size: 15px;height: 40px;margin-top: 0">
                                    {{i.title}}</p>
                                <p style="font-size: 12px;color: #666">
                                    ￥{{i.price}}<s>{{i.oldPrice}}</s>
                                    <span style="float: right">销量:{{i.saleCount}}件</span>
                                </p>
                            </div>
                        </el-card>
                    </el-col>
                </el-row>
            </el-row>
            <!--房间列表开始-->
            <el-row v-if="activeIndex=='2'" gutter="20" v-for="a in arr" style="margin-top: 10px">
                <div style="margin: 25px 0;font-size: 25px;color: blue">
                    <el-divider content-position="left">{{a.name}}</el-divider>
                </div>
                <el-col span="6" v-for="i in a.productArr" style="margin: 10px 0">
                    <el-card >
                        <img :src="i.url" width="100%" height="200px" alt="">
                        <div>
                            <p style="font-size: 15px;height: 40px;margin-top: 0">
                                {{i.title}}</p>
                            <p style="font-size: 12px;color: #666">
                                ￥{{i.price}}<s>{{i.oldPrice}}</s>
                                <span style="float: right">销量:{{i.saleCount}}件</span>
                            </p>
                        </div>
                    </el-card>
                </el-col>
            </el-row>
            <!--商品列表结束-->
            <!--留言列表开始-->
            <el-row gutter="20" v-if="activeIndex=='3'">
                <el-card>
                    <el-form label-width="40px">
                        <el-form-item label="发表">
                            <el-input type="text" placeholder="评论一下吧..." v-model="write.content"></el-input>
                            <el-button>确定</el-button>
                        </el-form-item>
                    </el-form>
                </el-card>
                <el-card style="margin: 10px 0" v-for="p in topArr">
                    <h1>{{p.username}}说:{{p.content}}</h1>
                    <h1>{{p.created}}</h1>
                    <el-input type="text" v-if="x"></el-input>
                    <a href="javascript:void(0)" @click="x1()" v-if="id==1">回复</a>
                    <a href="" v-else>评论</a>
                </el-card>
            </el-row>
            <!--留言列表结束-->
        </el-main>
        <el-footer>
            <div style="background-color: #3f3f3f;text-align: center;
      color: #b1b1b1; padding: 30px 0">
                <p>Copyright © 北京达内金桥科技有限公司版权所有 京ICP备12003709号-3 京公网安备 11010802029572号
                </p>
                <p>达内在线WWW.TMOOC.CN 专注于IT职业技能培训 </p>
                <p>涵盖20余门课程体系，致力于打造权威的IT职业教育学习平台</p>
            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function() {
            return {
                x:false,
                id:"1"
                ,
                write:{content:""}
                ,
                ll:{
                    name:"",
                    arr:[]
                },
                arr:[{name:"双人套房",productArr:[{title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"./imgs/room01.jpg",saleCount:2342},
                        {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342}]}
                    ,{name:"豪华标间",productArr:[{title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                            {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},]}
                    ,{name:"总统套房",productArr:[{title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"./imgs/room05.jpg",saleCount:2342},
                            {title:"美特斯邦威高腰牛仔裤女宽松小脚新款春秋彩色潮流女士牛仔",price:233,oldPrice:598,url:"./imgs/room06.jpg",saleCount:2342}]}
                    ,{name:"情侣专享",productArr:[{title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"./imgs/room07.jpg",saleCount:2342},
                            {title:"BEASTER 小恶魔明星同款保暖长袖街头潮流连帽卫衣情侣上衣",price:233,oldPrice:598,url:"./imgs/room11.jpg",saleCount:2342},
                            {title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"./imgs/room12.jpg",saleCount:2342}]}
                    ,{name:"电竞房间",productArr:[{title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"./imgs/room13.jpg",saleCount:2342},
                            {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"./imgs/room14.jpg",saleCount:2342},
                            {title:"美特斯邦威女MTEE 贺岁系列中长款风衣736598",price:233,oldPrice:598,url:"./imgs/room17.png",saleCount:2342},
                            {title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"./imgs/room01.jpg",saleCount:2342}]}],
                activeIndex:"1",
                wd:"",
                topArr:[{username:"吴发荣",content:"今天天气真好",created:"2022年5月"},
                    {username:"孟先伟",content:"今天天气真好",created:"2022年5月"},
                    {username:"李冲冲",content:"今天天气真好",created:"2022年5月"},
                    {username:"宋妍",content:"今天天气真好",created:"2022年5月"},
                    {username:"徐超",content:"今天天气真好",created:"2022年5月"}],
                pArr:[{title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"./imgs/room03.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"./imgs/room04.jpg",saleCount:2342}]
            }
        },
        methods:{
            x1(){
                v.x = true;
            },
            handleSelect(index, indexPath) {
                /*Key代表选择的位置,KeyPath代表选择的路径*/
                console.log(index, indexPath);
                v.activeIndex = index;
            },
            search(){
                v.$message("搜索的内容是:"+v.wd);
            }
        }
    })
</script>
</html>